<!doctype html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <p class="login-box-msg" style="color: orangered" th:text="|${msg}|"></p>

    <form action="/User/login" method="post">
        <table>
            <tr>
                <td>用户名：<input type="text" name="userName"></td>
            </tr>
            <tr>
                <td>密码：<input type="password" name="password"></td>
            </tr>
            <tr>
                <td><button type="submit">登录</button></td>
                <td><a th:href="@{/User/toregister}">没有账号？立即注册</a></td>
            </tr>
        </table>
    </form>
</body>
</html>